<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.org/rich">
<head>
 
</head>
<body id="fondo">
<h:form>
<table align="center">
	<tr>
		<td>
			<img src="#{facesContext.externalContext.requestContextPath}/imagenes/logo.jpg"></img>
		</td>
	</tr>
</table>
<table align="center">
	<tr>
		<td><h:outputText value="Usuario" /></td><td><h:inputText value="#{loginController.usuario}" /></td>
	</tr>
	<tr>
		<td><h:outputText value="Contraseña" /></td><td><h:inputSecret value="#{loginController.contrasena}" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><rich:messages style="color: red;"/></td>
	</tr>
	<tr>
		<td colspan="2" align="center"><h:commandButton action="#{loginController.validarUsuario}" value="Acceder" style=" width : 114px;"/></td>
	</tr>
</table>


</h:form>
</body>
</html>